﻿using Lcygcc.Infrastructure.Utility.IOC;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Autofac;
using Lcygcc.Domain.Service;

namespace Lcygcc.Domain.ServiceImpl
{
    public class DependencyRegistrar : IDependencyRegistrar
    {
        public int Order
        {
            get
            {
                return 1;
            }
        }

        public void Register(ContainerBuilder builder, ITypeFinder typeFinder)
        {
            builder.RegisterType<PersonService>().As<IPersonService>();
            builder.RegisterType<SyncService>().As<ISyncService>();
            builder.RegisterType<CardSeriesService>().As<ICardSeriesService>();
            builder.RegisterType<CardTypeService>().As<ICardTypeService>();
            builder.RegisterType<ClearDataService>().As<IClearDataService>();
        }
    }
}
